-- GENERATED SPELL FOR [Rakaiah] --


function spell0_9518(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(17227,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9518', 587, 1)
end

function spell1_9518(pUnit, Event) --@Lash of Pain,n/a--
pUnit:FullCastSpellOnTarget(15968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9518', 579, 1)
end

function Sorts_9518(pUnit, Event)
local choix_sorts_9518 = math.random(0, 1)
if choix_sorts_9518 == 0 then
pUnit:RegisterEvent('spell0_9518', 1, 1)
end
if choix_sorts_9518 == 1 then
pUnit:RegisterEvent('spell1_9518', 1, 1)
end
end

function mob9518_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9518', math.random(1500, 3000), 1)
end

function mob9518_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9518_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9518_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9518, 1, 'mob9518_Action')
RegisterUnitEvent(9518, 2, 'mob9518_Leave')
RegisterUnitEvent(9518, 3, 'mob9518_Kill')
RegisterUnitEvent(9518, 4, 'mob9518_Die')
